package com.example.administrator.xxnapp.bean;

import com.example.administrator.xxnapp.IModelApp;
import com.example.administrator.xxnapp.http.HttpUrl;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.request.GetRequest;

/**
 * Created by Administrator on 2018/5/24.
 */

public class VersionBean implements IModelApp{
    //{"versionCode":1,"path":"http://123.206.78.44/app/tucao/xxn.apk","versionName":"1.0.0"}
    private int versionCode;
    private String path;
    private String versionName;

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    @Override
    public GetRequest<String> getVersion() {
        return OkGo.<String>get(HttpUrl.GET_VERSION_URL);
    }
}
